<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ page import="javax.sql.*"%>

<%@ page isELIgnored ="false" %> 

<html:html>

<font size="6">Country of citizenship</font>
<p>

<body>
    <ul style="list-style:none; margin: 0px;"> 
        <li><b>First Name: </b>${applicantDataBean.firstname} </li> 
        <li><b>Middle Name: </b>${applicantDataBean.middlename} </li>
        <li><b>Last Name: </b>${applicantDataBean.lastname} </li>
    </ul> <br>
    
    Please provide citizenship information.<br>
    Click on your country of citizenship from the list below.<p>
   	
   	<%
   	RowSet crsCountries = (RowSet) request.getAttribute("crsCountries");

	%>
	
	<table cellpadding=0 cellspacing=0 border=0><tr>
	<td width=30% valign=top>
	<% 
	// Iterate over the RowSet
				for(int i=1; i<=75; i++){
						crsCountries.next();%>
	 		     		<html:link action="/showCountryPage2">
	 		     			<html:param name="country1" value="<%= crsCountries.getString(\"country_name\")%>"/> 
	 		     			<%= crsCountries.getString("country_name")%>
	 		     		</html:link><br><%
	 				}
	 			  out.println("</td>");
	 			  
	 			 out.println("<td width=30% valign=top>");
	 			 for(int i=76; i<=152; i++){%>
	 		     		<html:link action="/showCountryPage2">
	 		     			<html:param name="country1" value="<%= crsCountries.getString(\"country_name\")%>"/> 
	 		     			<%= crsCountries.getString("country_name")%>
	 		     		</html:link><br><%
	 		     		crsCountries.next();
			 		     	
		 			}
	 			 
	 			 out.println("<td width=30% valign=top>");
	 			 for(int i=152; i<=226; i++){%>
		 				<html:link action="/showCountryPage2">
			     			<html:param name="country1" value="<%= crsCountries.getString(\"country_name\")%>"/> 
			     			<%= crsCountries.getString("country_name")%>
			     		</html:link><br><%
	 		     		crsCountries.next();
	 				}
	%>
	</td>
	</tr>
	</table>
	
   	
   	
</body>
</html:html>